<script>
	export default {
		onLaunch: function() {
			const token = uni.getStorageSync('token');
			// if (!token) {
			// 	uni.redirectTo({
			// 		url: "/pages/index/index"
			// 	})
			// 	return
			// }
			const apply_certificate = uni.getStorageSync('apply_certificate');
			if (!apply_certificate) {
				uni.redirectTo({
				})
			}
		},
		onShow: function() {

			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="less">
	

	/*每个页面公共css */
	* {
		font-family: Source Han Sans CN, Source Han Sans CN;
		font-weight: 400;
	}

	.content {
		background-color: #F8F9FA;
		min-height: 100vh;
		padding-bottom: constant(safe-area-inset-bottom);
		/*兼容 IOS<11.2*/
		padding-bottom: env(safe-area-inset-bottom);
		/*兼容 IOS>11.2*/
	}

	.centered {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		margin: auto;
	}
</style>